package org.hbgl.geoentity.db.domain;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;

/**
 * 代码功能：
 * 开发日期：2022/10/12
 * 作者：蒋海仑
 * 联系方式：
 * 版本更迭说明：
 * 版权信息：河北广联信息技术有限公司
 */
@Data
public class SiteSetting implements Serializable {

    private Integer id;
    private String siteName;
    private String siteDomainName;
    private String siteLogo;
    private String siteBanner;
    private String seoKeywords;
    private String seoDescription;
    private  String siteCopyright;
    private  String technicalSupport;
    private  String siteTitleLogo;
    private String siteLogin;
    private  String icpCode;
    private  String publicSecurityCode;
    private  String publicSecurityUrl;
    private LocalDateTime addTime;
    private LocalDateTime editTime;



    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", siteName=").append(siteName);
        sb.append(", siteDomainName=").append(siteDomainName);
        sb.append(", siteLogo=").append(siteLogo);
        sb.append(", siteBanner=").append(siteBanner);
        sb.append(", seoKeywords=").append(seoKeywords);
        sb.append(", seoDescription=").append(seoDescription);
        sb.append(", siteCopyright=").append(siteCopyright);
        sb.append(", technicalSupport=").append(technicalSupport);
        sb.append(", icpCode=").append(icpCode);
        sb.append(", publicSecurityCode=").append(publicSecurityCode);
        sb.append(", publicSecurityUrl=").append(publicSecurityUrl);
        sb.append(", siteTitleLogo=").append(siteTitleLogo);
        sb.append(", siteLogin=").append(siteLogin);
        sb.append(", addTime=").append(addTime);
        sb.append(", editTime=").append(editTime);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table ge_department
     *
     * @mbg.generated
     */
    public enum Column {
        id("id", "id", "INTEGER", false),
        siteName("site_name", "siteName", "INTEGER", false),
        siteDomainName("site_domain_name", "siteDomainName", "VARCHAR", false),
        siteLogo("site_logo", "siteLogo", "INTEGER", true),
        siteBanner("site_banner", "siteBanner", "INTEGER", true),
        seoKeywords("seo_keywords", "seoKeywords", "VARCHAR", false),
        seoDescription("seo_description", "seoDescription", "VARCHAR", false),
        siteCopyright("site_copyright", "siteCopyright", "VARCHAR", true),
        technicalSupport("technical_support", "technicalSupport", "VARCHAR", false),
        icpCode("icp_code", "icpCode", "VARCHAR", true),
        publicSecurityCode("public_security_code", "publicSecurityCode", "VARCHAR", true),
        publicSecurityUrl("public_security_url", "publicSecurityUrl", "VARCHAR", true),
        siteTitleLogo("site_title_logo", "siteTitleLogo", "VARCHAR", true),
        siteLogin("site_login", "siteLogin", "VARCHAR", false),

        addTime("add_time", "addTime", "TIMESTAMP", false),

        editTime("edit_time", "editTime", "TIMESTAMP", false);

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        private static final String BEGINNING_DELIMITER = "`";

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        private static final String ENDING_DELIMITER = "`";

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        private final String column;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        private final boolean isColumnNameDelimited;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        private final String javaProperty;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        private final String jdbcType;

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        public String value() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        public String getValue() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        public String getJavaProperty() {
            return this.javaProperty;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        public String getJdbcType() {
            return this.jdbcType;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
            this.column = column;
            this.javaProperty = javaProperty;
            this.jdbcType = jdbcType;
            this.isColumnNameDelimited = isColumnNameDelimited;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        public String desc() {
            return this.getEscapedColumnName() + " DESC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        public String asc() {
            return this.getEscapedColumnName() + " ASC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        public static GeDepartment.Column[] excludes(GeDepartment.Column... excludes) {
            ArrayList<GeDepartment.Column> columns = new ArrayList<>(Arrays.asList(GeDepartment.Column.values()));
            if (excludes != null && excludes.length > 0) {
                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
            }
            return columns.toArray(new GeDepartment.Column[]{});
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        public String getEscapedColumnName() {
            if (this.isColumnNameDelimited) {
                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
            } else {
                return this.column;
            }
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table ge_department
         *
         * @mbg.generated
         */
        public String getAliasedEscapedColumnName() {
            return this.getEscapedColumnName();
        }
    }

}
